import Koa from 'koa'
import koaBody from 'koa-body'
import router from './router'
const app: Koa = new Koa()

app.use(koaBody())
app.use(router.routes()).use(router.allowedMethods())

app.listen(4000,()=>{
    console.log('server is running at http://localhost:4000')
})